module.exports = function(data){
  let {ctx, socket: {id}} = this
  if(ctx[id]){
    Object.assign(ctx[id].user, data)
  } else {
    ctx[id] = {
      user: data
    }
  }
}